package com.eedi.framework.notify.dal.dataobject;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.eedi.framework.common.enums.CommonStatusEnum;
import com.eedi.framework.notify.enums.SysNotifyTemplateTypeEnum;
import com.eedi.framework.tenant.core.db.TenantBaseDO;
import lombok.*;

import java.util.List;

/**
 * 站内信模版 DO
 *
 * @author xrcoder
 */
@TableName(value = "sys_notify_template", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysNotifyTemplateDO extends TenantBaseDO {

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String sysNotifyTemplateId;
    /**
     * 模版名称
     */
    private String sysNotifyName;
    /**
     * 模版编码
     */
    private String sysNotifyCode;
    /**
     * 模版类型
     *
     * 对应 system_notify_template_type 字典
     */
    private SysNotifyTemplateTypeEnum sysNotifyType;
    /**
     * 发送人名称
     */
    private String sysNotifyNickname;
    /**
     * 模版内容
     */
    private String sysNotifyContent;
    /**
     * 参数数组
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> sysNotifyParams;
    /**
     * 状态
     *
     * 枚举 {@link CommonStatusEnum}
     */
    private CommonStatusEnum sysNotifyStatus;
    /**
     * 备注
     */
    private String sysNotifyRemark;

}
